package com.zb.service.impl;

import com.zb.service.ZjWithdrawLogService;
import com.zb.vo.WithdrawLogVo;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;
import java.util.List;

/**
 * @Author WEN
 * @Date 2024/5/29 0029
 **/
@Service
public class FinanceLogService {
    private static FinanceLogService financeLogService;
    @PostConstruct
    public void init() {
        financeLogService = this;
    }
    @Resource
    private ZjWithdrawLogService withdrawLogService;

    /**
     * 保存提现日志
     * @param withdrawLogVo
     */
    public static void saveServiceWithdrawLog(WithdrawLogVo withdrawLogVo) {
        financeLogService.withdrawLogService.save(1, withdrawLogVo);
    }

    /**
     * 保存提现日志
     * @param withdrawLogVos
     */
    public static void saveServiceWithdrawLog(List<WithdrawLogVo> withdrawLogVos) {
        financeLogService.withdrawLogService.save(1, withdrawLogVos);
    }

    /**
     * 保存提现日志
     * @param withdrawLogVo
     */
    public static void saveNetworkWithdrawLog(WithdrawLogVo withdrawLogVo) {
        financeLogService.withdrawLogService.save(2, withdrawLogVo);
    }

    /**
     * 保存提现日志
     * @param withdrawLogVos
     */
    public static void saveNetworkWithdrawLog(List<WithdrawLogVo> withdrawLogVos) {
        financeLogService.withdrawLogService.save(2, withdrawLogVos);
    }
}
